Ext.define('TS.view.Header', {
        extend: 'Ext.panel.Panel',
        id:"app-header",
        initComponent: function() {
            Ext.applyIf(this, {
                region: 'north',
                html:"<div class='header' style='height:35'><font size='5' color='#fff'>ThinkGSP</font></div>",
                height: 58,
                border : true,
                bbar : [{
					iconCls : 'main-menu-user'
					//text:Ext.getElementById('username').value
					//text : "<sec:authentication property='name'/>"
				},'-',{
					text : Ext.Date.format(new Date(),'Y年m月d日')
				},'->',{
					text : '退出',
					iconCls : 'main-menu-logout',
					handler:function(){
						window.location.href='j_spring_security_logout';
					}
				}]
			});
            this.callParent(arguments);
        }
});